//index.js
//获取应用实例
var app = getApp()
Page({
  calling: function () {
    wx.makePhoneCall({
      phoneNumber: '12345678',
      success: function () {
        console.log("拨打电话成功！")
      },
      fail: function () {
        console.log("拨打电话失败！")
      }
    })
  },
  click: function (e) {
    wx.openLocation({
      latitude: 31.47422924711885,
      longitude: 120.36050765136719,
      scale: 18,
      name: 'XX物业',
      address: '江苏省无锡市新吴区XX物业'
    })
  }
})